﻿function changeTemplate(tpl)
{
    var path = window.location;
    location.href = "/ChangeTemplate.aspx?tpl=" + tpl + "&path=" + encodeURI(path);
}